package com.enation.app.javashop.consumer.job.execute.impl;

import com.enation.app.javashop.consumer.job.execute.EveryHourExecute;
import com.enation.app.javashop.core.client.trade.AfterSaleClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 每小时执行
 *
 * @author Chopper
 * @version v1.0
 * @since v7.0
 * 2018-07-25 上午10:21
 */
@Component
public class RefundStatusJob implements EveryHourExecute {
    @Autowired
    private AfterSaleClient afterSaleClient;
    /**
     * 每小时执行
     */
    @Override
    public void everyHour() {
        afterSaleClient.queryRefundStatus();
    }
}
